<template>
  <div class="yp-home">
    <div class="yp-home-header">
    <h1 class="yp-home-header_logo">
      <img src="https://m.xiaomiyoupin.com/youpin/static/m/res/images/navi_title_v4.png">
    </h1>
    <form class="yp-home-header_search">
      <i class="icon"></i>
      <input type="text" placeholder="有品心动卡">
    </form>
    <span class="yp-home-header_msg"></span>
  </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.yp-home {
  &-header {
  display: flex;
  height: 28px;
  line-height: 28px;
  width: 100%;
  padding: 6px 12px;

  &_logo {
    width: 64px;
    height: 100%;
    position: relative;

    > img {
      max-width: 100%;
      height: 100%;
    }
  }

  &_search {
    display: flex;
    background-color: #eee;
    width: 70%;
    align-items: center;
    border-radius: 2px;

    > .icon {
      display: inline-block;
      width: 13px;
      height: 13px;
      background-image: url(https://cbu01.alicdn.com/cms/upload/2017/294/133/3331492_2093810242.png);
      background-size: 13px 13px;
      margin: 0 4px;
    }

    > input {
      flex: 1;
      border: none;
      background: #eeeeee;
      font-size: 12px;
      outline: none;
    }
  }

  &_msg {
    height: 100%;
    width: 28px;
    background: url(https://m.youpin.mi.com/youpin/static/m/res/images/std_titlebar_home_message.png)
      no-repeat center center;
    background-size: 32px;
    margin-left: 4px;
  }
}
}
</style>
